import Vue from 'vue'
import VueRouter from 'vue-router'

/*liuxk*/
import Home from '@/components/Home'
/*product*/
import ProductList from '@/components/product/ProductList'
import List from '@/components/product/List'
import Detail from '@/components/product/Detail.vue'
import Pay from '@/components/product/Pay.vue'

/*member*/
import Member from '@/components/member/Index.vue'
import Account from '@/components/member/account/Account.vue'
import Recharge from '@/components/member/recharge/Index.vue'
import RechargePage from '@/components/member/recharge/Recharge.vue'
import BindBankCard from '@/components/member/recharge/BindCard.vue'
import WithdrawPage from '@/components/member/account/Withdraw.vue'
import InvestRecord from '@/components/member/record/InvestRecord.vue'
import FundRecord from '@/components/member/record/FundRecord.vue'




/*yec*/
import Information from '@/components/information/Index.vue';
import PlatformData from '@/components/information/data/PlatformData.vue';
import Reports from '@/components/information/data/Reports.vue';
import Notice from '@/components/information/news/Notice.vue';
import Media from '@/components/information/news/Media.vue';
import State from '@/components/information/news/State.vue';
import NoticeDetail from '@/components/information/news/NoticeDetail.vue'
import MediaDetail from '@/components/information/news/MediaDetail.vue'
import StateDetail from '@/components/information/news/StateDetail.vue'





/*xukl*/
import AboutUs from '@/components/information/about/AboutUs.vue';
import BasicInfo from '@/components/information/about/BasicInfo.vue';
import ManageTeam from '@/components/information/about/ManageTeam.vue';
import OurHonor from '@/components/information/about/OurHonor.vue';
import BigEvent from '@/components/information/about/BigEvent.vue';
import ProdDescrip from '@/components/information/about/ProdDescrip.vue';
import Charges from '@/components/information/about/Charges.vue';
import AuditReport from '@/components/information/about/AuditReport.vue';
import LegalAdviser from '@/components/information/about/LegalAdviser.vue';
import ContactUs from '@/components/information/about/ContactUs.vue';
import JoinUs from '@/components/information/about/JoinUs.vue';
import Registered from '@/components/Registered.vue';
import Login from '@/components/Login.vue';
import FindPass from '@/components/findpass/FindPass.vue';
import FillAccount from '@/components/findpass/FillAccount.vue';
import Authentication from '@/components/findpass/Authentication.vue';
import SetNewPass from '@/components/findpass/SetNewPass.vue';
import Complete from '@/components/findpass/Complete.vue';




Vue.use(VueRouter);

export default new VueRouter({
    routes: [
        {
            path: '/',
            component: Home,
            name: ['1']
        },
        {
            path: '/list',
            component: ProductList,
            children: [
                { path: '', component: List, name: ['2'] },
                { path: '/detail/:id', component: Detail, name: ['2'] }
            ]
        },
        {
            path: '/pay/:id',
            component: Pay,
            name: ['2']
        },
        {
            path: '/information',
            component: Information,
            children: [
                { path: '', component: AboutUs, name: ['4','1-1'] },
                { path: '/basicinfo', component: BasicInfo, name: ['4','1-2'] },
                { path: '/manageteam', component: ManageTeam, name: ['4','1-3'] },
                { path: '/ourhonor', component: OurHonor, name: ['4','1-4'] },
                { path: '/bigevent', component: BigEvent, name: ['4','1-5'] },
                { path: '/proddescrip', component: ProdDescrip, name: ['4','1-6'] },
                { path: '/charges', component: Charges, name: ['4','1-7'] },
                { path: '/auditreport', component: AuditReport, name: ['4','1-8'] },
                { path: '/legaladviser', component: LegalAdviser, name: ['4','1-9'] },
                { path: '/contactus', component: ContactUs, name: ['4','1-10'] },
                { path: '/joinus', component: JoinUs, name: ['4','1-11'] },
                { path: '/platformdata', component: PlatformData, name: ['4', '2-1'] },
                { path: '/reports', component: Reports, name: ['4', '2-2'] },
                { path: '/notice', component: Notice, name: ['4', '3-1'] },
                { path: '/media', component: Media, name: ['4', '3-2'] },
                { path: '/state', component: State, name: ['4', '3-3'] },
                { path: '/noticedetail/:id', component: NoticeDetail, name: ['4', '3-2'] },
                { path: '/mediadetail/:id', component: MediaDetail, name: ['4', '3-2'] },
                { path: '/statedetail/:id', component: StateDetail, name: ['4', '3-2'] }
            ]
        },
        {
            path: '/registered',
            component: Registered
        },
        {
            path: '/login',
            component:Login
        },
        {
            path: '/findpass',
            component: FindPass,
            children: [
                { path: '', component:  FillAccount,name: ['stp1'] },
                { path: '/authentication', component: Authentication,name: ['stp2'] },
                { path: '/setnewpass', component: SetNewPass,name: ['stp3'] },
                { path: '/complete', component: Complete,name: ['stp4'] },
            ]
        },
        {
            path: '/member',
            component: Member,
            children: [
                { path: '', component: Account, name: ['','1'] },
                { path: '/withdraw', component: WithdrawPage, name: ['','1'] },
                { path: '/investrecord', component: InvestRecord, name: ['','2'] },
                { path: '/fundrecord', component: FundRecord, name: ['','3'] }
            ]
        },
        {
            path: '/recharge',
            component: Recharge,
            children: [
                { path: '', component: RechargePage, name: [''] },
                { path: '/bindcard', component: BindBankCard, name: [''] }
            ]
        }
    ]
})